//
//  MGScale.h
//  Express
//
//  Created by lhongl on 2025/9/26.
//  Copyright © 2025 QM. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface MGScale : NSObject

/// 默认标准宽 375
@property(nonatomic, assign, class, readonly) CGFloat defaultWidth;

/// 默认标准高 667
@property(nonatomic, assign, class, readonly) CGFloat defaultHeight;


/// 设置适配标准
/// - Parameters:
///   - width: 宽
///   - height: 高
+ (void)setDefaultWidth:(CGFloat)width height:(CGFloat)height;

/// 适配宽
+ (CGFloat (^)(CGFloat width))scaleWidth;

/// 适配高
+ (CGFloat (^)(CGFloat height))scaleHeight;

@end

NS_ASSUME_NONNULL_END
